<?php

defined('PHPFOX') or exit('NO DICE!');

/**
 *
 *
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond Benc
 * @package  		Module_Feed
 * @version 		$Id: display.class.php 4621 2012-09-12 05:34:34Z Raymond_Benc $
 */
class Survey_Component_Block_Entry extends Phpfox_Component
{
    public function process(){
        $iId = $this->getParam('iSurveyId',false);
        if($iId == false){
            return false;
        }
        $aSurvey = Phpfox::getService('survey')->getSurvey($iId);
        
        $this->template()->assign(array(
            'aSurvey' => $aSurvey
        ));
    }
}